from django import template

register = template.Library()

def imgStr(value):
	"turns numbers of stars into string for image display of correspoding amount of stars"
	return(str(value*20)+'px')

register.filter('imgStr', imgStr)